<h1 class="library_title">Case Settings</h1>
<div class="horizontal_line"></div>
<%= start_form_tag :action => 'update', :id => @ecase %>
  <%= render :partial => 'form' %>
  <div class="horizontal_line"></div>
  <p class="submit_btn"><%= submit_tag 'Save' %> &nbsp;
    <%= link_to '<input type="button" value="Cancel" />', {:action => :show, :id => @ecase} %>
  </p>
<%= end_form_tag %>
  <div class="horizontal_line"></div>
  <% if can_delete_ecase?(@ecase) %>
    <% warning = "This will delete all your contents, images, slideshow etc.\nProceed?" %>
    <%= button_to "Delete", {:action => :destroy, :id => @ecase}, {:confirm => warning,:class=> "submit_btn" } %>
<% end %>